export interface ArticleCategoryParams {
  page?: number
  limit?: number
  title?: string
  type?: 0 | 1 | ''
  status?: 0 | 1 | ''
}

export interface ArticleCategory {
  id: number
  pid: number
  title: string
  intr: string
  image: string
  status: number
  sort: number
  is_del: number
  hidden: number
  add_time: string
  statusLoading?: boolean
}

export interface ArticleCategoryForm {
  id?: number
  title: string
  intr: string
  image: string
  sort: number
  status: 0 | 1
}

export interface ArticleParams {
  page?: number
  limit?: number
  pid?: string
  title?: string
}

export interface ArticleStoreInfo {
  store_name?: string
  image?: string
  price?: string
  ot_price?: string
  id?: number
}

export interface Article {
  id: number
  cid: string
  title: string
  author: string
  image_input: string[]
  synopsis: string
  share_title: string
  share_synopsis: string
  visit: number
  sort: number
  url: string
  status: number
  add_time: string
  hide: number
  admin_id: number
  mer_id: number
  product_id: number
  is_hot: number
  is_banner: number
  content: string
  storeInfo: ArticleStoreInfo | null
  store_name: string | null
}

export interface ArticleForm {
  id: number
  cid: string
  title: string
  author: string
  image_input: string
  content: string
  synopsis: string
  is_banner?: number
  is_hot?: number
  visit?: number
}

export interface ArticleRelation {
  product_id: number
}
